package com.eazy.lkv2.web.service.system.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.eazy.lkv2.web.entity.Permission;
import com.eazy.lkv2.web.service.system.SystemMenuService;
import com.rework.joss.persistence.convention.BaseDao;

@Service
public class SystemMenuServiceImpl extends BaseDao<Permission, String> implements SystemMenuService {

	@Override
	public List<Map<String, Object>> select() {
		return sqlSessionTemplate.selectList(getMapperMethodId("select"));
	}

	@Override
	public List<Map<String, Object>> selectSubMenu(String pid) {
		return sqlSessionTemplate.selectList(getMapperMethodId("selectSubMenu"),pid);
	}

}
